<template>
    <div>
        <div>数据:{{ count }}</div>
        <div>3倍量:{{ mCount(3) }}</div>
        <div>5倍量:{{ mCount(5) }}</div>
    </div>
</template>
<script lang='ts' setup>
    import {ref,computed} from 'vue'
    const count=ref<number>(10)
    const mCount=computed(()=>{
        return (arg:number)=>{
            return count.value*arg
        }
    })
</script>
<style lang='scss' scoped>
</style>